package com.nbjtjc.safe.mapper.sys;

import com.nbjtjc.safe.model.sys.SysRole;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface SysRoleMapper extends MyMapper<SysRole> {
    @ResultMap("rolePermissionMap")
    @Select("select * from sys_role")
    List<SysRole> findAll();

    List<SysRole> search(@Param("r") SysRole sysRole);
}